package shayu.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import shayu.product.entity.ProductAttrValueEntity;
import shayu.product.entity.SpuInfoDescEntity;
import shayu.product.entity.SpuInfoEntity;
import shayu.product.vo.SpuSaveVo;

import java.util.List;
import java.util.Map;

/**
 * spu信息
 *
 * @author xiaoshayu
 * @email xiaoshayu@qq.copm
 * @date 2023-05-03 22:48:56
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveProductAttr(List<ProductAttrValueEntity> collect);

    void savaSpuInfoDesc(SpuInfoDescEntity descEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

